package com.tongji.diy.controller.furnitureOptimizationController
{
	import com.tongji.diy.event.furnitureOptimizationEvent.OptimizationAddFurnitureEvent;
	import com.tongji.diy.model.furniturePlacementOptimization.AssembleModel;
	import com.tongji.diy.model.furniturePlacementOptimization.FurnitureOptimizationModel;
	
	import org.robotlegs.mvcs.Command;
	
	public class OptimizationAddFurnitureCommand extends Command
	{
		[Inject]
		public var event:OptimizationAddFurnitureEvent;
		
		[Inject]
		//public var model:FurnitureOptimizationModel;
		public var model:AssembleModel;
		public function OptimizationAddFurnitureCommand()
		{
			super();
		}
		
		override public function execute():void
		{
			model.addFurniture(event);
			//model.addBasicBoundingBox(event.location,event.width,event.length,event.heigth,event.angle, event.parentRoomIndex,event.furnitureIndex,event.furnitureClass);
		}
	}
}